# -*- coding: utf-8 -*-
"""
@Time    : 2021/10/13 17:48
@Author  : Leibuyun
@File    : 4.1 手动遍历迭代器.py
"""

# 通过iter() 和next()进行手动遍历可迭代对象
items = [1, 2, 3]
it = iter(items)    # items.__iter__()
print(next(it))
print(next(it))
print(next(it))